﻿namespace AnyOffice.Model
{
    using System;

    public class AttendEvectionData
    {
        protected int _allow;
        protected DateTime _evectionDate1 = DateTime.Now;
        protected DateTime _evectionDate2;
        protected object _evectionDest;
        protected int _evectionId = -1;
        protected string _leaderId = string.Empty;
        protected object _notReason;
        protected object _reason;
        protected int _status;
        protected string _userId = string.Empty;

        public int Allow
        {
            get
            {
                return this._allow;
            }
            set
            {
                this._allow = value;
            }
        }

        public DateTime EvectionDate1
        {
            get
            {
                return this._evectionDate1;
            }
            set
            {
                this._evectionDate1 = value;
            }
        }

        public DateTime EvectionDate2
        {
            get
            {
                return this._evectionDate2;
            }
            set
            {
                this._evectionDate2 = value;
            }
        }

        public string EvectionDest
        {
            get
            {
                return (string) this._evectionDest;
            }
            set
            {
                this._evectionDest = value;
            }
        }

        public bool EvectionDestIsNull
        {
            get
            {
                return (this._evectionDest == null);
            }
            set
            {
                if (value)
                {
                    this._evectionDest = null;
                }
            }
        }

        public int EvectionId
        {
            get
            {
                return this._evectionId;
            }
            set
            {
                this._evectionId = value;
            }
        }

        public string LeaderId
        {
            get
            {
                return this._leaderId;
            }
            set
            {
                this._leaderId = value;
            }
        }

        public string NotReason
        {
            get
            {
                return (string) this._notReason;
            }
            set
            {
                this._notReason = value;
            }
        }

        public bool NotReasonIsNull
        {
            get
            {
                return (this._notReason == null);
            }
            set
            {
                if (value)
                {
                    this._notReason = null;
                }
            }
        }

        public string Reason
        {
            get
            {
                return (string) this._reason;
            }
            set
            {
                this._reason = value;
            }
        }

        public bool ReasonIsNull
        {
            get
            {
                return (this._reason == null);
            }
            set
            {
                if (value)
                {
                    this._reason = null;
                }
            }
        }

        public int Status
        {
            get
            {
                return this._status;
            }
            set
            {
                this._status = value;
            }
        }

        public string UserId
        {
            get
            {
                return this._userId;
            }
            set
            {
                this._userId = value;
            }
        }
    }
}

